package com.woniu.supermarket.service;

import com.github.pagehelper.PageInfo;
import com.woniu.supermarket.entity.Warehousing;
import com.woniu.supermarket.entity.WarehousingCheck;
import com.woniu.supermarket.vo.AdvancedWarehousingVo;
import com.woniu.supermarket.vo.WarehousingVo;

import java.util.List;

public interface IWarehousingService {

     int addWarehousing(Warehousing warehousing);
     int modifyWarehousing(WarehousingVo warehousingVo);
     int removeWarehousing(int id);
     int removeBatchIds(int[] ids);
    //分页显示
    PageInfo<WarehousingVo> findWarehousingByCons(Integer now, Integer size, String warehousingNumber, String status);
    int addWarehousingDetail(WarehousingVo warehousingVo);

    int auditWarehousingcheck(WarehousingCheck warehousingCheck);
    //
    Warehousing findWarehousingByWarehousingNumber(String warehousingNumber);
    //
    WarehousingVo findWarehousingAndDetailByWarehousingNumber(String warehousingNumber);

    List<WarehousingVo> findAll();

    int findCount();

    PageInfo<WarehousingVo> advancedSearchByCons(Integer now, Integer size, AdvancedWarehousingVo advancedWarehousingVo);
}
